//
//  ZZScanViewController.swift
//  web
//
//  Created by 张卓 on 2017/1/16.
//  Copyright © 2017年 ZZ. All rights reserved.
//

import UIKit

class ZZScanViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = ZZRandomColor()
        // Do any additional setup after loading the view.
        setupUI()
    }
    
    //设置视图
    private func setupUI() {
        setupNav()
    }
    
    //设置导航控制器
    private func setupNav(){
        
        title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem(image: nil, title: "PPP", target: self, action: #selector(rightBntClick))
        
        //隐藏底部tabBar
        
        
    }
    @objc private func rightBntClick(){
        let scanVC = ZZScanViewController()
        navigationController?.pushViewController(scanVC, animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
